package com.mpaster.webmvcdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @RequestMapping("/hello")
    public String hello(){
        return "hello method";
    }

    @RequestMapping("/secondHello")
    public String secondHello(){
        return "secondHello method";
    }
}
